<?php


namespace app\cms\home\api\shopping;


use iflow\Router\Controller;
use iflow\Router\implement\Request\{ GetMapping, PostMapping, DeleteMapping };

#[Controller('%cmsHome%/shop_start')]
class shopStar {

    #[PostMapping]
    public function create(int $goods_id) {
        // TODO: 加入收藏
    }

    #[GetMapping]
    public function get() {
        // TODO: 获取 收藏列表
    }

    #[DeleteMapping('remove_star/<[0-9]{1,8}:goods_id>')]
    public function delete(int $goods_id) {
        // TODO: 删除当前收藏商品
    }

}